define(function(require, exports, module){
	
	var $ = require('jquery');
	var List = require('../util/list');
	require('jquery/jquery-timeago/1.3.0/jquery.timeago.js');
	
	var course = new List();
	course.options.template = "list-template";
	course.options.container = "#list-data";
	course.options.links = {"list" : $CONFIG.base_url + "/api/user"};
	course.options.params = {"uid":g_user.id};
	course.load();
	
	var trend = new List();
	trend.options.template = "trend-list-template";
	trend.options.container = "#trend-list-data";
	trend.options.links ={"list" : $CONFIG.base_url + "/api/user/trend/list"};
	trend.options.params = {"uid":g_user.id, "p":1, "s":2};
	trend.load(function(){
		$(".timeago").timeago();
	});
});